package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbWorkProjectDemandRecordMapper;
import com.ruoyi.system.domain.TbWorkProjectDemandRecord;
import com.ruoyi.system.service.ITbWorkProjectDemandRecordService;

/**
 * 项目需求记录Service业务层处理
 * 
 * @author xiaosiyuan
 * @date 2021-11-19
 */
@Service
public class TbWorkProjectDemandRecordServiceImpl implements ITbWorkProjectDemandRecordService 
{
    @Autowired
    private TbWorkProjectDemandRecordMapper tbWorkProjectDemandRecordMapper;

    /**
     * 查询项目需求记录
     * 
     * @param id 项目需求记录主键
     * @return 项目需求记录
     */
    @Override
    public TbWorkProjectDemandRecord selectTbWorkProjectDemandRecordById(String id)
    {
        return tbWorkProjectDemandRecordMapper.selectTbWorkProjectDemandRecordById(id);
    }

    /**
     * 查询项目需求记录列表
     * 
     * @param tbWorkProjectDemandRecord 项目需求记录
     * @return 项目需求记录
     */
    @Override
    public List<TbWorkProjectDemandRecord> selectTbWorkProjectDemandRecordList(TbWorkProjectDemandRecord tbWorkProjectDemandRecord)
    {
        return tbWorkProjectDemandRecordMapper.selectTbWorkProjectDemandRecordList(tbWorkProjectDemandRecord);
    }

    /**
     * 新增项目需求记录
     * 
     * @param tbWorkProjectDemandRecord 项目需求记录
     * @return 结果
     */
    @Override
    public int insertTbWorkProjectDemandRecord(TbWorkProjectDemandRecord tbWorkProjectDemandRecord)
    {
        return tbWorkProjectDemandRecordMapper.insertTbWorkProjectDemandRecord(tbWorkProjectDemandRecord);
    }

    /**
     * 修改项目需求记录
     * 
     * @param tbWorkProjectDemandRecord 项目需求记录
     * @return 结果
     */
    @Override
    public int updateTbWorkProjectDemandRecord(TbWorkProjectDemandRecord tbWorkProjectDemandRecord)
    {
        return tbWorkProjectDemandRecordMapper.updateTbWorkProjectDemandRecord(tbWorkProjectDemandRecord);
    }

    /**
     * 批量删除项目需求记录
     * 
     * @param ids 需要删除的项目需求记录主键
     * @return 结果
     */
    @Override
    public int deleteTbWorkProjectDemandRecordByIds(String[] ids)
    {
        return tbWorkProjectDemandRecordMapper.deleteTbWorkProjectDemandRecordByIds(ids);
    }

    /**
     * 删除项目需求记录信息
     * 
     * @param id 项目需求记录主键
     * @return 结果
     */
    @Override
    public int deleteTbWorkProjectDemandRecordById(String id)
    {
        return tbWorkProjectDemandRecordMapper.deleteTbWorkProjectDemandRecordById(id);
    }
}
